import { request } from '@/api/service'
export const urlPrefix = 'api/pdms/pump/'

// 查询项目列表k KqPumpsInfo
export function GetList (query) {
  return request({
    url: urlPrefix,
    method: 'get',
    params: query
  })
}

// 新增项目
export function AddObj (data) {
  return request({
    url: urlPrefix,
    method: 'post',
    data: data
  })
}
// 删除
export function DelObj (id) {
  return request({
    url: urlPrefix + id,
    method: 'delete'
  })
}

// 修改项目
export function UpdateObj (data) {
  return request({
    url: urlPrefix + data.id + '/',
    method: 'put',
    data: data
  })
}
